package com.guang.listener.listener.demo1;

import com.guang.listener.event.MyEntityEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @Title: MyEntityListener
 * @Author liguang
 * @Package com.guang.listener.listener
 * @Date 2024/11/15 10:37
 * @description: 我的实体监听器
 */
@Component
public class MyEntityListener {


    @EventListener
    public void onApplicationEvent(MyEntityEvent event) {
        System.out.println("监听到事件：" + event.getSource());
    }


}
